package com.zyx.xunyilu.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: SexEnum
 * @author: zyx
 * @E-mail: 1377631190@qq.com
 * @DATE: 2019/11/10 17:34
 */
@Getter
@AllArgsConstructor
public enum SexEnum {

    /**
     * MAN 男
     * WOMAN 女
     */
    MAN("MAN", 0),
    WOMAN("WOMAN", 1);

    @JsonValue
    String sexName;

    @EnumValue
    Integer sexCode;
}
